package net.codejava.spring.config;


import com.fasterxml.jackson.annotation.JsonProperty;

public class ResponseData {
	
	private boolean success = false;
	
	@JsonProperty("aaData")
	private Object aaData;
	
	private int iTotalRecords;
	
	//Righe totali dopo applicazioni filtri
	private int iTotalDisplayRecords;
	
	private String message;
	
	private String sEcho;

	public boolean isSuccess() {
		return success;
	}

	public ResponseData() {

	}

	public ResponseData(boolean success, Object aaData, int iTotalRecords,
			int iTotalDisplayRecords, String sEcho) {
		super();
		this.success = success;
		this.aaData = aaData;
		this.iTotalRecords = iTotalRecords;
		this.iTotalDisplayRecords = iTotalDisplayRecords;
		this.sEcho = sEcho;
	}
	
	public ResponseData(boolean success, Object aaData) {
		super();
		this.success = success;
		this.aaData = aaData;
	}
	
	public ResponseData(boolean success, String message) {
		super();
		this.success = success;
		this.message = message;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Object getAaData() {
		return aaData;
	}

	public void setAaData(Object aaData) {
		this.aaData = aaData;
	}

	public int getiTotalRecords() {
		return iTotalRecords;
	}

	public void setiTotalRecords(int iTotalRecords) {
		this.iTotalRecords = iTotalRecords;
	}

	public int getiTotalDisplayRecords() {
		return iTotalDisplayRecords;
	}

	public void setiTotalDisplayRecords(int iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getsEcho() {
		return sEcho;
	}

	public void setsEcho(String sEcho) {
		this.sEcho = sEcho;
	}

}

